//
//  ConceirgeView.m
//  LStyle
//
//  Created by Obaid Abdul Maroof on 12/19/09.
//  Copyright 2009 Vrije University. All rights reserved.
//

#import "ConceirgeView.h"


@implementation ConceirgeView

/*
 // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
        // Custom initialization
    }
    return self;
}
*/


// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
	[svScroller setContentSize:CGSizeMake(svScroller.frame.size.width, lblDesc.frame.size.height)];
	self.createFooter;
	tcConceirge = [[UITabBar alloc] initWithFrame:CGRectMake(0, 480-50, 320, 30)];
	
	[tcConceirge addSubview:lblConceirge];
	[tcConceirge addSubview:lblRequest];
	[tcConceirge addSubview:lblEvents];
	
	[self.view addSubview:tcConceirge];
	
	currentView = CView;
	lblCurrent = lblConceirge;
}


-(void) createFooter{
	UIFont *fnt = [UIFont fontWithName:@"Verdana" size: 10.0];
	lblConceirge = [[UILabel alloc] initWithFrame:CGRectMake(15, 5, 60, 20)];
	lblRequest = [[UILabel alloc] initWithFrame:CGRectMake(90, 5, 70, 20)];
	lblEvents = [[UILabel alloc] initWithFrame:CGRectMake(165, 5, 70, 20)];
	
	
	lblConceirge.textAlignment = UITextAlignmentCenter;
	lblRequest.textAlignment = UITextAlignmentCenter;
	lblEvents.textAlignment = UITextAlignmentCenter;
	
	[lblConceirge setBackgroundColor:[UIColor darkGrayColor]];
	[lblRequest setBackgroundColor:[UIColor clearColor]];
	[lblEvents setBackgroundColor:[UIColor clearColor]];
	
	lblConceirge.text = @"Concierge";
	lblRequest.text = @"Request";
	lblEvents.text = @"Event";
	
	lblConceirge.font = fnt;
	lblRequest.font = fnt;
	lblEvents.font = fnt;
	
	lblConceirge.textColor = [UIColor whiteColor];	
	lblRequest.textColor = [UIColor whiteColor];	
	lblEvents.textColor = [UIColor whiteColor];		
	
	lblConceirge.userInteractionEnabled = YES;
	lblRequest.userInteractionEnabled = YES;
	lblEvents.userInteractionEnabled = YES;
}


/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}


-(void)Back:(id)sender{
	[self.navigationController popViewControllerAnimated:YES];
}


@end
